<?php

namespace app\admin\validate;

use think\Validate;

class AdminValidate extends Validate
{
    protected $rule = [
        'account|用户名' => 'require|min:1|max:50',
        'password|密码' => 'require|max:500',
    ];

    protected $scene = [
        'login' => ['account', 'password']
    ];
}